import { useRoutes } from 'react-router-dom'
import routerConfig from '@/routes'
import { AliveScope } from 'react-activation'
import './App.less'

function App() {
  const Element = () => useRoutes(routerConfig)

  return (
    <div className="App">
      <AliveScope>
        <Element />
      </AliveScope>
    </div>
  )
}

export default App
